package com.xuhuan.demo.pattern.decorator;

/**
 * @author huan.xu
 * @date 2021/10/6 22:49
 * @description 饮料
 */
public abstract class Drink {

    /**
     * 描述
     */
    private String description;

    /**
     * 价格
     */
    private float price = 0.0f;

    /**
     * 抽象方法，计算价格
     *
     * @return
     */
    public abstract float cost();

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }
}
